package org.dromara.comm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.comm.domain.AsServicePerson;
import org.dromara.comm.domain.AsServiceType;

import java.util.List;
import java.util.Map;

public interface AsServicePersonService extends IService<AsServicePerson> {

    /**
     * 获取通讯录
     * @param asServiceType
     * @return
     */
    List<Map<String, Object>> getServiceGuideJson(AsServiceType asServiceType);

    /**
     * 插入通讯录分类
     * @param asServiceType
     */
    void insertAsServiceType(AsServiceType asServiceType);

    /**
     * 插入通讯录内容
     * @param asServicePerson
     */
    void insertAsServicePerson(AsServicePerson asServicePerson,AsServiceType asServiceType);

    /**
     * 修改通讯录分类
     * @param asServiceType
     */
    void updateAsServiceType(AsServiceType asServiceType);

    /**
     * 修改通讯录内容
     * @param asServicePerson
     */
    void updateAsServicePerson(AsServicePerson asServicePerson);

    /**
     * 删除通讯录
     * @param asServicePerson
     */
    void deleteAsServicePerson(AsServicePerson asServicePerson);
}
